package com.longmao.service.impl;

import com.longmao.model.PetType;
import com.longmao.repository.PetTypeRepository;
import com.longmao.service.PetTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PetTypeServiceImpl implements PetTypeService {
    @Autowired
    private PetTypeRepository petTypeRepository;

    @Override
    public List<PetType> getAllPetType() {
        return petTypeRepository.findAll();
    }
}
